import ZODB.config

__all__ = ( 'ZODBInstance', )

class ZODBConnection(object):

    def __init__(self):
        from django.conf import settings

        db = ZODB.config.databaseFromURL(settings.ZODB_CONFIG_URL)

        connection = db.open()
        self.root = connection.root()


ZODBInstance = ZODBConnection()

